package com.lxy.all;

public class Wordbean implements Comparable<Wordbean>{
	private String word;
	private int num;
	
	
	public Wordbean(String word, int num) {
		super();
		this.word = word;
		this.num = num;
	}
	public String getWord() {
		return word;
	}
	public void setWord(String word) {
		this.word = word;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	@Override
	public int compareTo(Wordbean arg0) {
		if(this.num>arg0.getNum()){
			return -1;
		}else if(this.num<arg0.getNum()){
			return 1;
		}else{
			return 0;
		}
	}
}
